import request from '@/utils/request/index'

function getList(data) {
	return request({
		url: '/api/articles/getList',
		data: data,
	});
}

function search(data) {
	return request({
		url: '/api/articles/search',
		data: data,
	});
}

function hotList(data) {
	return request({
		url: '/api/articles/hotList',
		data: data,
	});
}

function get(data) {
	return request({
		url: '/api/articles/get',
		data: data,
	});
}

function getContact(data) {
	return request({
		url: '/api/articles/getContact',
		data: data,
	});
}

function submit(data) {
	return request({
		url: '/api/articles/submit',
		method: 'POST',
		data: data,
	});
}

function myDynamic(data) {
	return request({
		url: '/api/articles/myDynamic',
		data: data,
	});
}

function deleteAlias(data) {
	return request({
		url: '/api/articles/delete',
		method: 'POST',
		data: data,
	});
}

export default {
	getList,
	search,
	hotList,
	get,
	getContact,
	submit,
	myDynamic,
	delete: deleteAlias
}